package com.pig4cloud.pigx.contract.open.api.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 */
@Data
public class OpenApiFundingRateHistoryVOV1 implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 资金费率
	 */
	@ApiModelProperty(value="资金费率")
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal fundingRate;

	/**
	 * 费率变更时间
	 */
	@ApiModelProperty(value="费率变更时间")
	private LocalDateTime dateTime;

	/**
	 * 币对名称
	 */
	@ApiModelProperty(value="币对名称")
	private String symbolName;

	/**
	 * 资金费率间隔
	 */
	@ApiModelProperty(value="资金费率间隔")
	private Integer fundingRateInterval;

}
